package com.test3.bean;

/**
 * @author Cc
 * 2024-03-12
 */
public class WeChatPay implements Pay {
    /**
     * 支付金额
     */
    private double money;

    public WeChatPay() {
    }

    public WeChatPay(double money) {
        this.money = money;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public void pay() {
        System.out.println("微信支付" + this.money + "元");
    }
}
